/* 吸顶导航部分 */
header {
    width: 100%;
}

header nav {
    width: 100%;
}

nav ul {
    display: flex;
    justify-content: space-around;
    position: relative;
}

nav ul>li {
    float: left;
    color: white;
    vertical-align: middle;
}

nav.sticky {
    position: fixed;
    background: #E6E6E6;
    visibility: hidden;
    box-shadow: 0 0 10px 1px #000000;
}

nav.sticky ul>li {
    color: #000000;
    line-height: .8rem;
    vertical-align: middle;
}

nav.offset {
    transform: translate(0, -100%);
    transition: all 2s ease-in-out;
}

nav.scrolling {
    visibility: visible;
    transform: translate(0, 0);
}


/* 头部样式 */
.top {
    position: relative;
    width: 100%;
    height: 1rem;
}

.home img {
    height: .5rem;
    position: absolute;
    left: 3%;
    top: 30%;
}

.news img {
    height: .45rem;
    position: absolute;
    right: 14%;
    top: 24%;

}

.search img {
    height: .85rem;
    position: absolute;
    left: 47%;
    top: 8%;
}

.btn img {
    height: .5rem;
    position: absolute;
    right: 3%;
    top: 30%;
}

/*百度图标*/
.LOGO {
    padding-top: 4%;
    text-align: center;
}

.LOGO>img {
    width: 3.5rem;
}

/* 搜索框 */
#box {
    width: 100%;
    margin-top: .6rem;
    margin-left: .25rem;
    position: relative;
}

#textSearch {
    float: left;
    width: 5rem;
    height: 1rem;
    font-size: .36rem;
    padding-left: .1rem;
    border: 1px solid #4E6EF2;
    outline: none;
    border-radius: .2rem 0 0 .2rem;
    background: url(../img/camera.png) no-repeat;
    background-size: 7%;
    background-position: 4.4rem;
}

input::-webkit-input-placeholder {
    color: rgb(216, 210, 210);
    padding-left: 82%;
}

.icon {
    height: 6rem;
    width: 6rem;
    background-image: url(../img/voice.png);
    background-repeat: no-repeat;
    background-size: 7%;
    position: absolute;
    top: 30%;
    left: 3.5rem;
}

#buttonSearch {
    width: 2rem;
    height: 1rem;
    border-style: none;
    border-radius: 0 .2rem .2rem 0;
    font-size: .36rem;
    font-weight: bolder;
    color: white;
    background: #4E6EF2;
    outline: none;
}

/* 轮播图 */
#app {
    width: 7rem;
    margin: 0 auto;

}

.swiper-container {
    border-radius: .25rem;
}

.swiper-container img {
    display: block;
    height: calc(100vw/3);
}

.swiper-container {
    --swiper-pagination-color: #D3E0F8;
}

@media all and (max-width:750px) {

    /* 媒体查询：w<=750px */
    .swiper-container {
        width: 100%;
        /* img:w=300;h=150
        100vw/h=300/150
        h=100vw/2 */
        height: calc(100vw/3);
    }
}

.main {
    margin-top: .4rem;
    margin-left: .4rem;
}

.tp {
    margin-top: .5rem;
    font-size: .33rem;
    height: .5rem;
}

.center {
    color: red;
    float: left;
    font-size: .28rem;
}

.btm {
    position: absolute;
    left: 1.2rem;
    font-size: .28rem;
    color: #999999;
}

.end {
    font-size: .28rem;
    color: #999999;
}

/* 文章部分 */
.article {
    margin-left: .3rem;
    margin-top: .3rem;
}

.article p {
    font-size: .33rem;
}

.article img {
    margin-top: .2rem;
    width: 31%;
}

.nav_box {
    background-color: red;
}

